package web.admin.shop.product.checkboxtree;

import domain.shop.Category;

import java.util.Comparator;

public class CategoryComparator implements Comparator {

    public int compare(Object o1, Object o2) {
        String o1Name = ((Category) o1).getName();
        String o2Name = ((Category) o2).getName();
        return o1Name.compareTo(o2Name);
    }
}
